import request from '@/utils/request'

// 获取创作者支持信息
export function getCreatorSupportInfo() {
  return request({
    url: '/api/creator/support/info',
    method: 'get'
  })
}

// 获取创作者资源列表
export function getCreatorResources(params) {
  return request({
    url: '/api/creator/resources',
    method: 'get',
    params
  })
}

// 获取创作者资源详情
export function getCreatorResourceDetail(id) {
  return request({
    url: `/api/creator/resources/${id}`,
    method: 'get'
  })
}

// 申请成为创作者
export function applyForCreator(data) {
  return request({
    url: '/api/creator/apply',
    method: 'post',
    data
  })
}

// 获取创作者申请状态
export function getCreatorApplicationStatus() {
  return request({
    url: '/api/creator/application/status',
    method: 'get'
  })
}

// 获取创作者指南列表
export function getCreatorGuides() {
  return request({
    url: '/api/creator/guides',
    method: 'get'
  })
}

// 获取创作者常见问题
export function getCreatorFAQs() {
  return request({
    url: '/api/creator/faqs',
    method: 'get'
  })
}

export default {
  getCreatorSupportInfo,
  getCreatorResources,
  getCreatorResourceDetail,
  applyForCreator,
  getCreatorApplicationStatus,
  getCreatorGuides,
  getCreatorFAQs
} 